<?php
$id = $_GET['id'];
$shopcode = 'shop' . $id;
if (isset(Yii::app()->request->cookies[$shopcode]->value)) {
    $shoparry = Yii::app()->request->cookies[$shopcode]->value;
    $savedCardArray = json_decode($shoparry, true);
}
?>
<div class="footer">
    <div class="container">
        <div class="row">
            <div class="col-lg-12 footer-social" style="float: none;">

                <div style="text-align: center; color: #2a6496;text-decoration: none;">
                    <a style="color: #2a6496;text-decoration: none;" href="<?php echo $savedCardArray[10]; ?>" target="_blank"><img src="<?php echo Yii::app()->request->baseUrl; ?>/icon/icon_YouTube_64.png"> Youtube</a>
                    <a style="color: #2a6496;text-decoration: none;" href="<?php echo $savedCardArray[11]; ?>" target="_blank"><img src="<?php echo Yii::app()->request->baseUrl; ?>/icon/icon_face_64.png"> Facebook</a>
                    <a style="color: #2a6496;text-decoration: none;" href="<?php echo $savedCardArray[12]; ?>" target="_blank"><img src="<?php echo Yii::app()->request->baseUrl; ?>/icon/icon_google_64.png"> Google+</a>
                    <a style="color: #2a6496;text-decoration: none;" href="<?php echo $savedCardArray[13]; ?>" target="_blank"><img src="<?php echo Yii::app()->request->baseUrl; ?>/icon/icon-twitter.png" style="margin-bottom: 5px;"> Twitter+</a>
                </div>
            </div>
        </div>
        <div class="footer-collapse" style="text-align: center; ">
            <a href="#" id="copyright-collapse" style="color: #2a6496;text-decoration: none;"> Thông tin bản quyền <br>
                <img src="<?php echo Yii::app()->request->baseUrl; ?>/icon/arrow_view.png">
            </a>
        </div>
        <div class="row" id="copyright-info" style="display: none;">
            <div style="font-size:12px; color:#2a6496;">

                <p style="text-align: justify;">

                </p><div style="text-align:center;">
                    ©Copyright <?php echo date('Y'); ?> – SCSS, All rights reserved .<br>
                     <?php echo $savedCardArray[5];?>
                </div>
                   
                
                <p></p>
            </div>
        </div>
        <script>

            jQuery(document).ready(function() {

                jQuery('#copyright-info').hide();

                jQuery('#copyright-collapse').click(function() {
                    jQuery("#copyright-info").toggle();

                    jQuery("html, body").animate({scrollTop: jQuery(document).height() - jQuery(window).height()});

                    return false;
                });

                jQuery('#scrolltop').click(function() {
                    jQuery('html, body').animate({scrollTop: 0}, 'fast');
                });


            });
        </script>


    </div>
</div>

